package com.gitee.kamismile.stone.basic.data.domain.sysRole.repository.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.util.Date;
import java.util.Objects;

/**
 * 角色 绑定部门 先不用
 */
@Table(name = "sys_role_dep")
public class SysRoleDep {
    @Id
    private Integer nSysRoleDepId;
    private Integer nSysDepId;
    private Integer nSysRoleId;
    private Integer nTenantId;
    private Integer nCreateBy;
    private Integer nUpdateBy;
    private Date dCreateTime;
    private Date dUpdateTime;

    public Integer getnSysRoleDepId() {
        return nSysRoleDepId;
    }

    public void setnSysRoleDepId(Integer nSysRoleDepId) {
        this.nSysRoleDepId = nSysRoleDepId;
    }

    public Integer getnSysDepId() {
        return nSysDepId;
    }

    public void setnSysDepId(Integer nSysDepId) {
        this.nSysDepId = nSysDepId;
    }

    public Integer getnSysRoleId() {
        return nSysRoleId;
    }

    public void setnSysRoleId(Integer nSysRoleId) {
        this.nSysRoleId = nSysRoleId;
    }

    public Integer getnTenantId() {
        return nTenantId;
    }

    public void setnTenantId(Integer nTenantId) {
        this.nTenantId = nTenantId;
    }

    public Integer getnCreateBy() {
        return nCreateBy;
    }

    public void setnCreateBy(Integer nCreateBy) {
        this.nCreateBy = nCreateBy;
    }

    public Integer getnUpdateBy() {
        return nUpdateBy;
    }

    public void setnUpdateBy(Integer nUpdateBy) {
        this.nUpdateBy = nUpdateBy;
    }

    public Date getdCreateTime() {
        return dCreateTime;
    }

    public void setdCreateTime(Date dCreateTime) {
        this.dCreateTime = dCreateTime;
    }

    public Date getdUpdateTime() {
        return dUpdateTime;
    }

    public void setdUpdateTime(Date dUpdateTime) {
        this.dUpdateTime = dUpdateTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SysRoleDep that = (SysRoleDep) o;
        return Objects.equals(nSysRoleDepId, that.nSysRoleDepId) && Objects.equals(nSysDepId, that.nSysDepId) && Objects.equals(nSysRoleId, that.nSysRoleId) && Objects.equals(nTenantId, that.nTenantId) && Objects.equals(nCreateBy, that.nCreateBy) && Objects.equals(nUpdateBy, that.nUpdateBy) && Objects.equals(dCreateTime, that.dCreateTime) && Objects.equals(dUpdateTime, that.dUpdateTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(nSysRoleDepId, nSysDepId, nSysRoleId, nTenantId, nCreateBy, nUpdateBy, dCreateTime, dUpdateTime);
    }
}
